package com.donn.securitycontrolplatform.usertag.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户和标签关联表
 * </p>
 *
 * @author zhenglixiang
 * @since 2022-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_tag")
@ApiModel(value="UserTag对象", description="用户和标签关联表")
public class UserTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "user_id", type = IdType.INPUT)
    private String userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "性别")
    private String userSex;

    @ApiModelProperty(value = "用户类型：1：本单位；2：外协")
    private String userType;

    @ApiModelProperty(value = "标签ID")
    private String tagId;

    @ApiModelProperty(value = "1：安全帽；2：卡牌；3：物资标签")
    private String tagType;

    @ApiModelProperty(value = "图像链接")
    private String userImage;

    @ApiModelProperty(value = "生效起始时间")
    private LocalDateTime authorizationStartTime;

    @ApiModelProperty(value = "生效结束时间")
    private LocalDateTime authorizationEndTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
